From 8860ca069c04e3dbd3f107f1526f2901f1085902 Mon Sep 17 00:00:00 2001 From: Daniel Nilsson Date: Sun, 16 Jun 2024 17:56:52 +0200 Subject: [PATCH] luci-app-attendedsysupgrade: enforce correct imagebuilder version By passing the version_code parameter, we can error out if the imagebuilder that responded to the request isn't the same, mirroring the current behavior of auc. Signed-off-by: Daniel Nilsson --- .../luci-static/resources/view/attendedsysupgrade/overview.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js b/applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js index 0e6ae9d20c..3d40f992fa 100644 --- a/applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js +++ b/applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js @@ -476,6 +476,7 @@ return view.extend({ request: { profile, version: candidates[0][0], + version_code: revision, packages: Object.keys(packages).sort(), }, }; @@ -536,6 +537,7 @@ return view.extend({ ...firmware, packages: mapdata.request.packages, version: mapdata.request.version, + version_code: mapdata.request.version_code, profile: mapdata.request.profile }; this.pollFn = L.bind(function () { -- 2.30.2